# Python 可以处理 7 种类型的数据：
# 数值
# 字符串
# 布尔值
# 列表
# 元组
# 字典
# 集合

# 数值有int float complex
a = 23.45
print(type(a) == float)
print(isinstance(a, int))
aa = 23
print(type(a) == int)
print(isinstance(a, int))
aaa = 3j + 23
print(type(aaa) == complex)
print(isinstance(aaa, complex))
# 字符串
b = 'stt'
print(type(b) == str)
print(isinstance(b, str))

# 布尔
c = True
cc = False
print(type(c) == bool)
print(isinstance(cc, bool))

# 列表[]
d = [1, 2, 3, 'a', 'b']
print(type(d) == list)
print(isinstance(d, list))

# 元组()，创建后不能修改
e = (1, 2, 3, 'tyy')
print(type(e) == tuple)
print(isinstance(e, tuple))
# 集合
f = {1, 2, 3, "wee"}
print(type(f) == set)
print(isinstance(f, set))
# 字典{k:v} dict
g = {'name': 'libai', 'age': 23}
print(type(g) == dict)
print(isinstance(g, dict))
